package com.gang.mars.basic.iterable;

import java.util.Iterator;

public class C3 {

    public static void main(String[] args)
    {
        GSequenceList<String> names = new GSequenceList<>(10);

        names.add("chen");

        names.add("gang");

        Iterator<String> iterator = names.iterator();

        while (iterator.hasNext()) {
            String name = iterator.next();
            System.out.println(name);
        }
    }
}
